#ifndef NETTOOLS_H
#define NETTOOLS_H

#include <QObject>
#include <QMap>
#include <QtNetwork/QHttp>
#include <QUrl>

class NetTools : public QObject
{
    Q_OBJECT
public:
    explicit NetTools(QObject *parent = 0);
    QString GetIp(QString metod);

private:
    QMap<QString,QString> _webs;
    QString _WanIp;
    QList<QString> GetMetods();
    QString gethtml(QString url);
    bool _Kip;
    QHttp* _http;

public slots:
    void getdone(bool);
};

#endif // NETTOOLS_H
